#pragma once

#include "WndMap.h"
#include "../_inc/def_interface.h"

// CWrapMap

class CWrapMap : public CWnd
{
	DECLARE_DYNAMIC(CWrapMap)

public:
	CWrapMap();
	virtual ~CWrapMap();

protected:
	DECLARE_MESSAGE_MAP()
public:
	afx_msg int OnCreate(LPCREATESTRUCT lpCreateStruct);
	afx_msg void OnDestroy();
	afx_msg void OnPaint();
	afx_msg void OnSize(UINT nType, int cx, int cy);


private:
	CWndMap *m_pWndMap;
	HBITMAP m_hbmpImage;
public:
	void SetCallback(PCALLBACK_APP callbackProc, void* callbackParam);
	BOOL CheckNetworkState();
	void SetState(BOOL bReady);
	BOOL GetStartState();

	void StartMap();
	void StopMap();

	void SetGps(float fGpsN, float fGpsE, float fSpeed);
};


